import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {ConfigManagementComponent} from './config-management.component';

const routes: Routes = [
    {path: '', component: ConfigManagementComponent,
        children: [
            {path: '', redirectTo: 'con-zone-manage', pathMatch: 'full'},
            {path: 'con-zone-template', loadChildren: './con-zone-template/con-zone-template.module#ConZoneTemplateModule'},
            {path: 'con-zone-manage', loadChildren: './con-zone-manage/con-zone-manage.module#ConZoneManageModule'},
            {path: 'con-zone-type', loadChildren: './con-zone-type/con-zone-type.module#ConZoneTypeModule'},
            {path: 'con-version', loadChildren: './con-version/con-version.module#ConVersionModule'},
            {path: 'con-feedback', loadChildren: './con-feedback/con-feedback.module#ConFeedbackModule'},
            {path: 'con-share-manage', loadChildren: './con-share-manage/con-share-manage.module#ConShareManageModule'}

        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class ConfigManagementRoutingModule {
}
